//
//  HWMineModel.swift
//  HWPromoteProjectAPP
//
//  Created by 王昌健 on 2022/2/8.
//  Copyright © 2022 王昌健. All rights reserved.
//

import UIKit
import HandyJSON

enum HWMineNavType:NSInteger {
    /// 推广盒子
    case promoteBox = 101
    /// 推广游戏
    case promoteGame = 102
    /// 我的游戏
    case myGame = 103
    /// 申请游戏
    case applyGame = 104
    /// 折扣代充
    case saleRecharge = 105
    /// 申请结算
    case applySettlement = 106
    /// 结算明细
    case settlementDetailed = 107
    /// 下线管理
    case subordinate = 108
    /// 分成明细
    case divisionDetails = 109
    /// 提现管理
    case withdrawalManage = 110
    /// 添加下线
    case addSubordinate = 113
    /// 分成比例
    case divideScale = 114
    /// 人气榜
    case popularityRank = 115
    /// 开服信息
    case openServiceInfo = 116
    /// 游戏礼包
    case gameGiftBag = 117
    /// 注册统计
    case registerStatistics = 118
    /// 充值统计
    case rechargeStatistics = 119
    /// 角色汇总
    case roleSummary = 120
    /// 注册方式
    case registType = 121
    /// 充值方式
    case rechargeType = 122
    /// 消费榜单
    case consumeRank = 123
    /// 推广排行
    case promoteRank = 112
    /// 个人信息
    case mineInfo = 125
    /// 实名认证
    case realNameAuthentication = 126
    /// 修改密码
    case changePassword = 127
    /// 充值记录
    case rechargeRecord = 128
    /// 提现明细
    case withdrawalDetails = 129
    /// 联系我们
    case contactUs = 130
    /// 推广公告
    case promoteNotice = 131
}
class HWMineModel: HandyJSON {
    required init() {}
    
    /// 用户名
    var username = ""
    /// 头像
    var head = ""
    /// 可提现金额
    var shareMoney = ""
    /// 预付款
    var yufu = ""
    /// 推广总金额
    var money = ""
    /// 新闻公告
    var news:[HWMineNewsModel] = []
    /// 功能
    var nav:[HWMineNavModel] = []
}

class HWMineNewsModel: HandyJSON {
    required init() {}
    /// 标题
    var title = ""
    /// 跳转链接
    var url = ""
}

class HWMineNavModel: HandyJSON {
    required init() {}
    /// 功能分类
    var title = ""
    /// 分类图标
    var icon = ""
    var data:[HWMineDataModel] = []
}

class HWMineDataModel: HandyJSON {
    required init() {}
    /// 功能名
    var name = ""
    /// 图标
    var icon = ""
    /// 类型
    var type = 0
    /// H5页面
    var url = ""
}
